
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <!--[if lt IE 9]>
    <script src="statics/newcommon/js/html5shiv.js"></script>
    <![endif]-->
    <meta name="keywords" content="网贷平台,网络借贷，网络赚钱项目,理财产品">
    <meta name="description" content="爱钱帮网贷平台为您提供网络赚钱项目；为此相继推出了许多新的理财产品，在为您创造高收益的同时也优化了理财产品模式。网络借贷，就选爱钱帮。">
    <meta charset="UTF-8">
    <link  rel="Shortcut  Icon"  href="statics/home/images/minilogo.png">
    <link rel="stylesheet" href="statics/newcommon/css/m2-commonNew.css?20160520">
    <link rel="stylesheet" href="statics/newcommon/css/m2-common.css?20160520">
    <link rel="Shortcut  Icon" href="statics/newcommon/images/minilogo.png?20160520">
    <link rel="stylesheet" href="statics/usercenter/css/userCenter.css?20160520">
    <script type="text/javascript" src="statics/newcommon/js/jquery.min.js?20160520"></script>
    <script type="text/javascript" src="statics/newcommon/js/common.js?20160520"></script>
    <script type="text/javascript" src="statics/usercenter/js/esl.js?20160520"></script>
    <link rel="stylesheet" href="statics/usercenter/css/jquery.datetimepicker.css?20160520" />
    <script type="text/javascript" src="statics/usercenter/js/jquery.datetimepicker.js?20160520"></script>
</head>
<title>站内消息--爱钱帮</title>
<div class="m2-userCentercommon-bg" style='display: none'></div>
<div class="m2-userCentercommon-confirm" style='display: none'></div>
<!-- 右侧边栏start -->
<div class="m2-commonRight">
    <ul class="m2-comRiglist">
        <li class="m2-comRigli m2-comRigli-ewm">
            <i class="m2-comRigli-icon"></i>
            <span class="m2-comRigli-hov">关注<br>微信</span>
            <div class="m2-comRighide m2-comRighide-ewm"><i></i></div>
        </li>
        <li class="m2-comRigli m2-comRigli-tel">
            <i class="m2-comRigli-icon"></i>
            <span class="m2-comRigli-hov">联系<br>我们</span>
            <div class="m2-comRighide m2-comRighide-tel">
                <div class="m2-comRighide-telSpace"></div>
                <b class="m2-comRighide-telBorder"></b>
                <div class="m2-comRigtel-lef">
                    <div class="m2-comRigtel-lefTop">
                        <input type="text" placeholder="请输入您的手机号"  id='phonenumber'>
                    </div>
                    <div class="m2-comRigtel-lefBot">
                        <input type="text" placeholder="验证码" id="ivrSecurityCode">
                        <img id="ivrSecurityCodeImg" onclick="getCode()" src="code.png" alt="验证码" title="点击更新验证码">
                    </div>
                </div>
                <div class="m2-comRigtel-rig">
                    <span  onclick='callback()'>免费<br>拨打</span>
                </div>
            </div>
        </li>
        <li class="m2-comRigli m2-comRigli-qq">
            <a  target="_blank" href="http://wpa.qq.com/msgrd?v=3&amp;uin=2522274059&amp;site=qq&amp;menu=yes">
                <i class="m2-comRigli-icon"></i>
                <span class="m2-comRigli-hov">在线<br>客服</span>
            </a>
            <!-- <div class="m2-comRighide"></div> -->
        </li>
        <!--<li class="m2-comRigli m2-comRigli-sug">-->
        <!--<i class="m2-comRigli-icon"></i>-->
        <!--<span class="m2-comRigli-hov">意见<br>反馈</span>-->
        <!-- <div class="m2-comRighide"></div> -->
        <!--</li>-->
        <li class="m2-comRigli m2-comRigli-top">
            <i class="m2-comRigli-icon"></i>
            <span class="m2-comRigli-hov">返回<br>顶部</span>
            <!-- <div class="m2-comRighide"></div> -->
        </li>
    </ul>
</div>

<script type="text/javascript">
    $(function () {
        var wHei = $(window).height();

        $(document).scroll(function () {
            // 判断返回顶部是否显示
            visTop(wHei);
        });

        $('.m2-comRigli-top').click(function () {
            $('body,html').animate({scrollTop: 0}, 600);
            return false;
        });
    });

    function visTop(high) {

        if ($(document).scrollTop() > high + 100) {
            $('.m2-comRigli-top').css('visibility', 'visible');
        } else {
            $('.m2-comRigli-top').css('visibility', 'hidden');
        }
    }
</script>
<!-- 右侧边栏end -->


<!-- headerStart -->
<div class="m2-commonTop-con">
    <div class="m2-commonTop">
        <div class="m2-commonTop-left">
            <div class="m2-commonTop-tel"><i></i>4006&nbsp;-&nbsp;777&nbsp;-&nbsp;518</div>
            <div class="m2-commonTop-service"><i></i><span>客服：</span><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&amp;uin=2522274059&amp;site=qq&amp;menu=yes" title="">2522274059</a></div>
            <div class="m2-commonEwm">
                <span class="m2-commonEwm-tit">关注我们：</span>
                <div class="m2-commonEwmwx">
                    <i class="m2-commonEwmicon"></i>
                    <div class="m2-commonEwmhid">
                        <em class="m2-commonEwmhid-arr"></em>
                        <em class="m2-commonEwmhid-arrBg"></em>
                        <b></b>
                        <span>扫一扫<br>关注爱钱帮订阅号</span>
                    </div>
                </div>
                <div class="m2-commonEwmwb">
                    <i class="m2-commonEwmicon" onclick='window.open("http://weibo.com/iqianbang");'></i>
                </div>
            </div>
        </div>
        <div class="m2-commonTop-right">
            <div class="m2-commonTop-link">
                <ul>
                    <li class="m2-commonTop-btn" style="display: none" id="bbs"><a id="bbslogin" target="_blank">论坛</a></li>
                    <li class="m2-commonTop-loged">
                        <span class="m2-commonTop-userName"><a href="usercenter.html">您好，iqb13737301354</a></span>
                    </li>
                    <li class="m2-commonTop-btn"><a href="#" style="border-right:none;">退出</a></li>
                    <li class="m2-commonTop-btn"><a href="company_finance.html" id="cfpage" style="border-right:none;width: 50px;">企业理财</a></li>
                    </li>
                </ul>
            </div>
            <div class="m2-commonTop-app" onclick='window.open("/appdownload.html")' style="cursor:pointer;">
                <a href="" class="m2-commonTop-and"></a>
                <a href="" class="m2-commonTop-ios"></a>
                <span>app下载入口</span>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(function () {
        $('#bbslogin').click(function(){
            var w = window.open();
            $.ajax({
                type:"GET",
                url :"/api-bbslogin",
                success:function(msg){
                    var obj = eval('('+msg+')');
                    var obj = eval(obj);
                    if (obj.status == 1){
                        w.location = obj.message;
                    }
                }
            });
        });
        var _uid = Number(305497);
        var _all_uid = Array(5277,320,25893,77960,70760,4762,36256,59960,126250,75980,4039,68689,133118,185);
        function in_array(uid,array){
            for(var i in array){
                if(array[i] == uid){
                    $("#bbs").attr("style","display:block");
                }
            }
        }
        in_array(_uid,_all_uid);
    });
</script>
</div>
<div class="m2-commonNav-con">
    <div class="m2-commonNav-box">
        <div class="m2-commonLogo">
            <a href="index.html"><img src="statics/newcommon/images/m2-logo.png" title="爱钱帮官网" alt="爱钱帮_logo"></a>
        </div>
        <div class="m2-commonNav">
            <ul class="m2-commonNavul-fir" data_page='threepage'>
                <!--  <li class="m2-commonNav-fir"><a href="http://huifu.iqianbang.com" target="_blank" >汇付版本</a></li>-->
                <li class="m2-commonNav-fir"><a href="index.html" id="onepage">首页</a></li>
                <li class="m2-commonNav-fir"><a href="touzi_licai_chanpin.html" id="twopage">我要投资</a></li>
                <li class="m2-commonNav-fir"><a href="membermall.html" id="sevenpage">会员商城</a></li>
                <li class="m2-commonNav-fir"><a href="usercenter.html" id="threepage">我的账户</a></li>
                <li class="m2-commonNav-fir"><a href="anquanlicai_baozhang.html" id="fourpage">安全保障</a></li>
                <li class="m2-commonNav-fir"><a href="guanyu_aiqianbang.html" id="fivepage">关于我们</a></li>
                <!-- <li class="m2-commonNav-fir"><a href="guide.html">新手引导</a></li> -->
                <li class="m2-commonNav-fir"><a href="licaiwang_zhuantihuodong.html" id="sixpage">活动专区</a></li>
            </ul>
        </div>
    </div>
</div>
</header>

<style>
    .vIVR{display:none}
</style>
<script>
    var page=$(".m2-commonNavul-fir").attr("data_page");
    $("#"+page).parent().css("borderBottom","2px solid #ff6666");
    var queuename = '30017180006';
    function callback() {
        $('#tel').val($('#phonenumber').val());
        call();
    }
    setCallResponse = function (json) {
        var obj = eval('(' + json + ')');
        if (obj['description']) {
            $('#callBack-codeErr').css('display', 'block');
            $('#ivrSecurityCode').val('');
            getCode();
            setTimeout(function () {
                $('#callBack-codeErr').css('display', 'none');
            }, 3000);
        }
    }
</script>
<!-- headerEnd -->

<div class="m2-userCentermain">
    <div class="m2-userCentermain-aside">
        <ul>
            <li class="m2-asideListitem">
                <a class="m2-aside-item" href="usercenter.html"><i class="m2-asideIcon1"></i>我的账户</a>
            </li>
            <li class="m2-asideListitem">
                <a class="m2-aside-item" href="usercenter-growth-index.html"><i class="m2-asideIcon-vip"></i>成长值中心</a>
            </li>
            <li class="m2-asideListitem">
                <a class="m2-aside-item m2-aside-toggle" ><i class="m2-asideIcon2"></i>投资管理<b class="m2-asideIcon-new"></b></a>
                <ul class="m2-aside-secItem" style="display:none">
                    <!--             取消自动投标-->
                    <!--                   <li>-->
                    <!--                        <a class="m2-aside-secLink-item" href="/usercenter-investcontrol-autoinvest"><b class="m2-asideIcon-new"></b>自动投标</a>-->
                    <!--                    </li>-->

                    <li>
                        <a class="m2-aside-secLink-item" href="usercenter-investcontrol-investrecord.html">投资记录</a>
                    </li>
                    <li>
                        <a class="m2-aside-secLink-item" href="usercenter-investcontrol-monthrepayment.html">回款计划</a>
                    </li>
                    <li>
                        <a class="m2-aside-secLink-item" href="usercenter-investcontrol-transfer.html">债权转让</a>
                    </li>
                    <li>
                        <a class="m2-aside-secLink-item" href="touzi_licai_chanpin.html" target="_blank">立即投资</a>
                    </li>

                </ul>
            </li>

            <li class="m2-asideListitem">
                <a class="m2-aside-item" href="usercenter-invitefriends.html">
                    <i class="m2-asideIcon-invit"></i>
                    <b class="m2-asideIcon-prize"></b>
                    邀请好友
                </a>
            </li>
            <li class="m2-asideListitem">
                <a class="m2-aside-item m2-aside-toggle" href="home-register-openbankid.html"><i class="m2-asideIcon3"></i>徽商资金管理</a>            <ul class="m2-aside-secItem" style="display:none">
                <li><a class="m2-aside-secLink-item" href="#">充&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;值</a></li>
                <li><a class="m2-aside-secLink-item" href="#">提&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;现</a></li>
                <li><a class="m2-aside-secLink-item" href="#">资金流水</a></li>

            </ul>
            </li>
            <li class="m2-asideListitem">
                <a class="m2-aside-item m2-aside-toggle" ><i class="m2-asideIcon4"></i>奖励管理</a>
                <ul class="m2-aside-secItem" style="display:none">
                    <li>
                        <a class="m2-aside-secLink-item" href="usercenter-rewardcontrol-rewardrecord.html">奖励金流水</a>
                    </li>
                    <li>
                        <a class="m2-aside-secLink-item" href="usercenter-rewardcontrol-redpacket.html">我的红包</a>
                    </li>
                    <li>
                        <a class="m2-aside-secLink-item" href="usercenter-rewardcontrol-interestcoupon.html">我的加息券</a>
                    </li>
                    <li>
                        <a class="m2-aside-secLink-item" href="usercenter-rewardcontrol-mycoin.html">我的钱帮币</a>
                    </li>
                </ul>
            </li>
            <li class="m2-asideListitem">
                <a class="m2-aside-item m2-aside-toggle" ><i class="m2-asideIcon5"></i>消息管理 </a>
                <ul class="m2-aside-secItem" style="display:none">
                    <li>
                        <a class="m2-aside-secLink-item" href="usercenter-messagecontrol-sitemsg.html">站内消息</a>
                    </li>
                    <li>
                        <a class="m2-aside-secLink-item" href="usercenter-messagecontrol-set_message.html">通知设置</a>
                    </li>
                </ul>
            </li>
            <li class="m2-asideListitem">
                <a class="m2-aside-item m2-aside-toggle" ><i class="m2-asideIcon6"></i>账户管理</a>
                <ul class="m2-aside-secItem" style="display:none" id='aaa'>
                    <li>
                        <a class="m2-aside-secLink-item" href="#">账户设置</a>
                    </li>
                </ul>
            </li>
        </ul>
    </div>
    <script>
        // 		$(document).ready(function(){
        var href = window.location.href;
        var search = window.location.search;
        $('.m2-asideListitem ul a').each(function () {
            if ($(this).prop('href') + search == href) {
                if ($(this).prop('href') == "/usercenter-wangbaoqiang" || $(this).prop('href') == "/usercenter-sirendingqi") {
                } else {
                    $(this).parent().parent('ul').show();
                    $(this).parent().parent('ul').prev('a').removeClass('m2-aside-item');
                    $(this).parent().parent('ul').prev('a').addClass('m2-aside-cur');
                    $(this).css('text-decoration', 'underline');
                    $(this).css('color', '#0996CC');
                }
            }
        });
        $('.m2-asideListitem a:not(.m2-asideListitem ul a)').each(function () {
            if ($(this).prop('href') + search == href) {
                if ($(this).prop('href').search("usercenter-wangbaoqiang") > -1) {
                    $(this).removeClass('m2-aside-wbq');
                    $(this).addClass('m2-aside-cur');
                } else if ($(this).prop('href').search("usercenter-sirendingqi") > -1) {
                    $(this).removeClass('m2-aside-wbq');
                    $(this).addClass('m2-aside-cur');
                } else {
                    $(this).removeClass('m2-aside-item');
                    $(this).addClass('m2-aside-cur');
                }
            }
        });
        $('.m2-asideListitem a:not(.m2-asideListitem ul a)').click(function () {
            if ($(this).prop('href') == '') {
                $(this).siblings('ul').slideToggle();
                $(this).parent().siblings('.m2-asideListitem').children('.m2-aside-secItem').slideUp();
            }
        });
        // 		});
    </script>

    <div class="m2-userCentermanage-con">
        <div class="m2-user-recharge">
            <h3><i class="m2-user-natnotice"></i>站内消息</h3>
        </div>
        <div class="m2-manage-search-selector">
            <!-- <ul class="m2-manageSearchsel-time">
               <li>消息类型：</li>
               <li class="m2-manageSearchsel-link"><span class="m2-manSealink-sel" data-type="">全部</span></li>
               <li class="m2-manageSearchsel-link"><span class="m2-manSealink-unsel" data-type="0,4" >充值提现</span></li>
               <li class="m2-manageSearchsel-link"><span class="m2-manSealink-unsel" data-type="1,5,6" > 投资债转</span></li>
               <li class="m2-manageSearchsel-link"><span class="m2-manSealink-unsel" data-type="2,3" >回款奖励</span></li>
               <li class="m2-manageSearchsel-link"><span class="m2-manSealink-unsel" data-type="7" >项目公告</span></li>
               <li class="m2-manageSearchsel-link"><span class="m2-manSealink-unsel" data-type="8,9" ><i class="m2-asideIcon5">其他通知</i></span></li>
               <li class="m2-manageSearchsel-link"><a href="usercenter-messagecontrol-set_message.html" class="m2-Setnotice-alert">设置消息提醒</a></li>
           </ul> -->
            <ul class="m2-manageSearchsel-type">
                <li>消息状态：</li>
                <li class="m2-manageSearchsel-link"><span class="m2-manSealink-sel" data-status='2' >全部</span></li>
                <li class="m2-manageSearchsel-link"><span class="m2-manSealink-unsel" data-status='0' >未读</span></li>
                <li class="m2-manageSearchsel-link"><span class="m2-manSealink-unsel" data-status='1' >已读 </span></li>
            </ul>
        </div>
        <div class="m2-recharge-mainbody">
            <div class="m2-user-newsmanage">
                <script>
                    //消息管理消息详情
                    function showcontent(){
                        var m2Tit = $(".m2-user-newsmanage ul li h5");
                        m2Tit.toggle(function(){
                            $(this).parent('li').children('.m2-news-content').slideDown('fast',function(){
                                var pageheight = $(window).outerHeight();
                                var pagescroll = $(window).scrollTop();
                                var thistop = $(this).parent('li').offset().top;
                                var thisheight = $(this).parent('li').height();
                                if(pageheight + pagescroll < thistop + thisheight + 43){
                                    $('body').animate({scrollTop: thistop + thisheight + 43 - pageheight},300);
                                }
                            });
                            mesid=$(this).data('message');
                            var req=$(this);
                            if(req.children('i').hasClass('m2-news-firead')){
                                $.ajax({
                                    type: "POST",
                                    url: "/Usercenter-Messagecontrol-readmessage",
                                    data: {'id':mesid},
                                    dataType: 'json',
                                    success: function(d) {
                                        if(d['status']==1){
                                            req.children('i').removeClass('m2-news-firead');
                                            req.children('i').addClass('m2-news-unread');
                                            if(Number($('#unread-msg-num').text()) > 0){
                                                $('#unread-msg-num').text(Number($('#unread-msg-num').text())-1);
                                                if(Number($('#unread-msg-num').text()) == 0){
                                                    $('#unread-msg-num').remove();
                                                }
                                            }
                                        }
                                    }
                                });
                            }

                        },function(){
                            $(this).parent('li').children('.m2-news-content').slideUp('fast');
                        });
                        //消息状态
                        m2Tit.mouseover(function(){
                            $(this).css('color','#bbb');
                            $(".m2-news-tit").css('color','#0996cc');
                        });
                        m2Tit.mouseout(function(){
                            $(this).css('color','#717171');
                            $(".m2-news-tit").css('color','#0996cc');
                        });
                    }
                    function searchstatus(){
                        $(".m2-manageSearchsel-type .m2-manageSearchsel-link span").click(function(){
                            var status=$(this).data('status');
                            if($(this).hasClass('m2-manSealink-unsel')){
                                $(this).removeClass('m2-manSealink-unsel');
                                $(this).addClass('m2-manSealink-sel');
                                $(this).parent('.m2-manageSearchsel-link').siblings().children('.m2-manSealink-sel').addClass('m2-manSealink-unsel');
                                $(this).parent('.m2-manageSearchsel-link').siblings().children('.m2-manSealink-sel').removeClass('m2-manSealink-sel');
                            }
                            postData("/Usercenter-Messagecontrol-message_search", {'status':status}, function(d){
                                $('.m2-news-body').remove();
                                $(d['html']).insertAfter('.m2-news-titcont');
                                showcontent();
                                stat=status;
                                cpage = 1;
                                page = d['pages'];
                                pager();
                            });
                        });
                    }

                    $(document).ready(function(){
                        showcontent();
                        searchstatus();
                        //消息管理状态切换
                        $(".m2-user-newsmanage h3").click(function(){
                            $(this).hide();
                            $(".m2-news-manage").show();
                            $(".m2-news-manageall").show();
                        });
                        $(".m2-news-quit").click(function(){
                            $(".m2-news-manageall").hide();
                            $(".m2-news-manage").hide();
                            $(".m2-user-newsmanage h3").show();
                        });

                    });

                    //消息管理 checkbox状态，全选，删除状态
                    $(document).ready(function() {
                        // 全选
                        var subChk = $(".m2-news-checkall")
                        subChk.click(function() {
                            $(".m2-news-manage").prop("checked", subChk.length == subChk.filter(":checked").length ? true:false);
                        });
                        /* 批量删除 */
                        $(".m2-news-dele").click(function() {
                            // 判断是否至少选择一项
                            $('.m2-news-checkall').attr('checked',false);
                            var checkedNum = $("input[name='m2-checkbox-name']:checked").length;
                            if(checkedNum == 0) {
                                dialog("请选择至少一项！",0);
                                return;
                            }
                            // 批量选择

                            var checkedList = new Array();
                            $("input[name='m2-checkbox-name']:checked").each(function() {

                                //$(this).parent('li').remove();
                                checkedList.push($(this).val());
                            });
                            $.ajax({
                                type: "POST",
                                url: "/Usercenter-Messagecontrol-delmessage",
                                dataType: 'json',
                                data: {'id':checkedList},
                                success: function(data) {

                                    $.ajax({
                                        type: "POST",
                                        url: "/Usercenter-Messagecontrol-message_search",
                                        dataType: 'json',
                                        data:'',
                                        success: function(data) {
                                            $('.m2-news-body').remove();
                                            $(data['html']).insertAfter('.m2-news-titcont');
                                            $(".m2-news-manage").show();
                                            $(".m2-news-manageall").show();
                                            showcontent();
                                        }
                                    });

                                }
                            });

                        });
                    });


                </script>
                <h3><i></i>消息管理</h3>
                <div class="m2-news-manageall"><input type="checkbox" class="m2-news-checkall"/><a class="m2-news-dele" href="javascript:void(0)">删除</a><a class="m2-news-quit" href="javascript:void(0)">退出管理</a></div>
                <ul>
                    <li class="m2-news-titcont"><h5 class="m2-news-tit">消息内容</h5><h6 class="m2-news-tit">生成时间</h6></li>
                </ul>
            </div>
            <input type="hidden" class="m2-total-pages" value=0>
            <div class="m2-news-pages">
            </div>
            </if>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(function(){
        var pageIndex = parseInt(1);
        m2page();
        pager();
    });


    function m2page(){
        $('.m2-page-unsel').click(function(){
            pageIndex=parseInt($(this).index());
            $(this).siblings('.m2-page-sel').removeClass('m2-page-sel').addClass('m2-page-unsel');
            $(this).removeClass('m2-page-unsel').addClass('m2-page-sel');
            m2page()
        });

    }

    var page = '0';
    var cpage = 1;
    var stat = 2;

    function getList(index){

        if(index > 0 && index <= page){
            $.ajax({
                url:"usercenter-Messagecontrol-message_search",
                type:"POST",
                data:{
                    start:index-1,
                    status:stat
                },
                success:function(data){
                    obj = eval('('+data+')');
                    $('.m2-news-body').remove();
                    $(obj['html']).insertAfter('.m2-news-titcont');
                    showcontent();
                    cpage = index;
                    page = obj['pages'];
                    pager();
                }
            });
        }
    }

    function pager(){

        if(page == 0){
            $('.m2-news-pages').hide();
        }else{
            $('.m2-news-pages').show();
            var n = 0;
            if(page < 6){
                n = page;
            }else if(cpage < page){
                n = cpage+1>5 ? cpage+1 : 5;
            }else{
                n = cpage;
            }
            var m = n-4>0 ? n-4 : 1;
            var pages = '<a class="m2-pages-num m2-pages-prev" onclick="getList('+(cpage-1)+')">&lt;</a>';
            for(var i = m; i <= n; i++){
                if(i == cpage){
                    pages += '<a class="m2-pages-num m2-page-sel" onclick="getList('+i+')">'+i+'</a>';
                }else{
                    pages += '<a class="m2-pages-num m2-page-unsel" onclick="getList('+i+')">'+i+'</a>';
                }
            }
            pages += '<a class="m2-pages-num m2-pages-next" onclick="getList('+(cpage+1)+')">&gt;</a>';
            $('.m2-news-pages').html(pages);
        }
    }

</script>
</body>
</html>